package com.kezesong.leasing.service.impl;

import com.kezesong.leasing.entity.MsgInfoEntity;
import com.kezesong.leasing.mapper.MsgInfoMapper;
import com.kezesong.leasing.service.MsgInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsgInfoServiceImpl implements MsgInfoService {

    @Autowired
    MsgInfoMapper msgInfoMapper;

    @Override
    public List<MsgInfoEntity> getMsgInfoList(MsgInfoEntity msgInfoEntity) {
        List<MsgInfoEntity> result = msgInfoMapper.select(msgInfoEntity);
        return result;
    }

    @Override
    public int addMsgInfo(MsgInfoEntity msgInfoEntity) {
        int row = msgInfoMapper.insert(msgInfoEntity);
        return row;
    }
}
